home *** CD-ROM | disk | FTP | other *** search
- Path: Belgium.EU.net!box!pahint
- From: pahint@eunet.be (Pieter Hintjens)
- Newsgroups: comp.lang.c
- Subject: Re: Efficient Sorting - In search of
- Date: 29 Feb 1996 18:33:00 GMT
- Organization: EUnet Belgium, Leuven, Belgium
- Message-ID: <4h4rgs$f8l@news.Belgium.EU.net>
- References: <4h4imh$3bh@news.cis.nctu.edu.tw>
- NNTP-Posting-Host: box.eunet.be
- X-Newsreader: TIN [version 1.2 PL2]
-
- Don Pierce (don@pierce.geometrics.com) wrote:
- : I am looking for an efficient sorting algorithm
- : that can sort an array of floats. I prefer
- : a non-recursive version as I have heard they are
- : not very efficient on large data sets. My arrays
- : are up 10000 elements.
-
- Try the COMB SORT algorithm. This is basically a
- bubble sort, with a one line change that brings it
- up to the same kind of speed as quicksort.
-
- I'd give you the algorithm in code, but my version
- is in COBOL, and this is a C newsgroup... ;-)
-
- Oops, my mistake - it's a *two* line change.
- --
- Pieter A. Hintjens
-